<?php
/**
 * Created by zhang.
 * User: zhang
 * Date: 2018/7/26
 * Time: 22:44
 */

namespace app\index\model;


use think\Model;

class coupon extends Model
{
    protected $table = 'bar_coupon';

    public function getCouponList($where){
        $result = self::where($where)->select();
        return $result;
    }

    public  function getCouponInfo($where){
        $result = self::where($where)->find();
        return $result;
    }

}